﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeepZoomPivotConstructor.VisualLib.Hotspots
{
    /// <summary>
    /// Simple class that will store a link - when the user clicks on
    /// the area it will cause the SL control to attempt to re-direct
    /// the web page to a link (http, etc.).
    /// </summary>
    public class HSActionLink : HotSpotActionBase
    {
        public HSActionLink(Uri destination)
        {
            Link = destination;

            LeftClickToActivate = true;
        }

        /// <summary>
        /// Returns the uri that is the destination for this hot spot.
        /// </summary>
        public Uri Link { get; private set; }

        /// <summary>
        /// Returns the address
        /// </summary>
        public override string LinkData
        {
            get { return Link.OriginalString; }
        }

        /// <summary>
        /// Returns this is a uri.
        /// </summary>
        public override string LinkType
        {
            get { return "uri"; }
        }
    }
}
